<template>
    <BreadView v-if="category">
      <BreadItem :to="'/'">首页</BreadItem>
      <BreadItem :to="'/'">{{category[1].name}}</BreadItem>
      <BreadItem :to="'/'">{{category[0].name}}</BreadItem>
      <BreadItem :to="'/'">{{name}}</BreadItem>
    </BreadView>
  </template>
    
    <script>
  import BreadView from "@/components/bread/BreadView"
  import BreadItem from "@/components/bread/BreadItem"
  export default {
    components: { BreadView, BreadItem },
    props: {
      category: {
        type: Array,
        default: () => { }
      },
      name: {
        type: String,
        default: ''
      }
    }
  }
    </script>
    
    <style>
  </style>